home *** CD-ROM | disk | FTP | other *** search
- NAME
- AutoHilite.AVf
-
-
- DESCRIPTION
- AutoHilite.AVf is an example of the four automatic highlighting modes
- available in AmigaVision Professional.
-
- When this example is presented, a group of 24 hit boxes is displayed.
- The highlighting mode being demonstrated is printed in the field at
- the top of the screen. Clicking on any hit box will cause the next
- auto-hiliting mode to be demonstrated. At any time the F1 key can be
- pressed to quit the example.
-
- NOTE: When using one of the automatic highlighting modes while on
- the AmigaVision Editor screen, the right mouse button does
- not abort the presentation. You must use the F1 key to quit.
-
- The variable called Mode is used to display the auto-hiliting mode in
- use. Its presents is not required to set an auto-hiliting mode.
-
- In all the auto-hiliting modes, a "hit box" refers to an object that
- has a string in the response field.
-
- AUTO-HILITE WITH POINTER
-
- Traits of the Auto-Hilite with Pointer mode are:
- 1) The pointer is always present on the screen.
- 2) When the pointer moves over a hit box, the selected state of
- the object is displayed (i.e. that object is highlighted).
- 3) To select this hit box, a mouse button must be clicked.
-
- The first auto-hiliting mode demonstrated is Auto-Hiliting with
- Pointer. The ObjSet() function assigns the value "Pointer" to the
- AutoHilite attribute of the AVSystem.Interface object. This expression
- is all that is necessary to set this mode.
-
- AUTO-HILITE WITHOUT POINTER
-
- Traits of the Auto-Hilite without Pointer mode are:
- 1) The pointer is removed from the screen.
- 2) One hit box is always displayed in its selected state (i.e.
- highlighted).
- 3) As the mouse is moved, the highlight is also moved among the
- available hit boxes.
- For example, if one hit box is highlighted and the mouse is
- moved to the left, the current hit box is un-highlighted and
- the next hit box to the left is highlighted.
-
- When you use the Auto-Hilite without Pointer mode, you must choose one
- of three options: NoWrap, SameLine, or NextLine. These options
- determine the type of wrap-around action performed when the highlight
- reaches the edge of the screen.
-
- The second auto-hiliting mode demonstrated in this example is
- Auto-Hiliting without Pointer using the NoWrap option. To set the mode,
- the following expression is used:
- ObjSet ("AVSystem.Interface", "AutoHilite", "NoPointer").
-
- The following expression is used to set the NoWrap option:
- ObjSet ("AVSystem.Interface.Pattern", "WrapAround", "NoWrap").
-
- When the highlight reaches the end of the row of hit boxes, no wrap
- around of any kind is used.
-
- The third auto-hiliting mode demonstated is the same as the second,
- only using the SameLine option. This option is set with the ObjSet()
- function. ObjSet() assigns the value "SameLine" to the WrapAround
- attribute of the system object AVSystem.Interface.Pattern. When the
- highlight reaches the end of the row of hit boxes, the highlight
- moves to the beginning of the same line.
-
- The last auto-hiliting mode demonstated is the same as the second and
- third (Auto-Hilite without Pointer) but the NextLine option is used.
- The NextLine option is set by using the ObjSet() function to assign
- the value "NextLine" to the WrapAround attribute of the system object
- AVSystem.Interface.Pattern. When the highlight reaches the end of the
- row of hit boxes, the highlight moves to the beginning of the next row.
-
-